---@class file
file = {}

---	Change current directory (and drive).
---@param
---@return nil
function file.chdir()
end

---	Determines whether the specified file exists.
---@param
---@return nil
function file.exists()
end

---	Format the file system.
---@param
---@return nil
function file.format()
end

---	Returns the flash address and physical size of the file system area, in bytes.
---@param
---@return nil
function file.fscfg()
end

---	Return size information for the file system.
---@param
---@return nil
function file.fsinfo()
end

---	Open and read the contents of a file.
---@param
---@return nil
function file.getcontents()
end

---	Lists all files in the file system.
---@param
---@return nil
function file.list()
end

---	Mounts a FatFs volume on SD card.
---@param
---@return nil
function file.mount()
end

---	Registers callback functions.
---@param
---@return nil
function file.on()
end

---	Opens a file for access, potentially creating it (for write modes).
---@param
---@return nil
function file.open()
end

---	Remove a file from the file system.
---@param
---@return nil
function file.remove()
end

---	Open and write the contents of a file.
---@param
---@return nil
function file.putcontents()
end

---	Renames a file.
---@param
---@return nil
function file.rename()
end

---	Get attribtues of a file or directory in a table.
---@param
---@return nil
function file.stat()
end

--[[
file.close(), file.obj:close()	Closes the open file, if any.
file.flush(), file.obj:flush()	Flushes any pending writes to the file system, ensuring no data is lost on a restart.
file.read(), file.obj:read()	Read content from the open file.
file.readline(), file.obj:readline()	Read the next line from the open file.
file.seek(), file.obj:seek()	Sets and gets the file position, measured from the beginning of the file, to the position given by offset plus a base specified by the string whence.
file.write(), file.obj:write()	Write a string to the open file.
file.writeline(), file.obj:writeline()	Write a string to the open file and append '\n' at the end.
]]
--
